package com.color.admin.system.entity.vo.dept;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author HaiQiu
 * @date 2021/12/27
 */
public class DeptSmallVo implements Serializable {

    private String id;
    private String deptName;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof DeptSmallVo)) {
            return false;
        }
        DeptSmallVo that = (DeptSmallVo) o;
        return Objects.equals(getId(), that.getId()) && Objects.equals(getDeptName(), that.getDeptName());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getId(), getDeptName());
    }
}
